import { createStore } from 'vuex'
interface State{
  collapsed:any
}
export default createStore({
  state: {
    collapsed: localStorage.getItem('collapsed')==='true',
  },
  getters: {
  },
  mutations: {
    changeColl(state:State){
      localStorage.setItem('collapsed',(!state.collapsed).toString())
      state.collapsed = !state.collapsed
    }
  },
  actions: {
  },
  modules: {
  }
})
